/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TelaPrincipal.java
 *
 * Created on 27/04/2010, 15:50:55
 */

package fronteira;

import java.awt.Color;

/**
 *
 * @author Mateus
 */
public class TelaPrincipal extends javax.swing.JFrame {

    /** Creates new form TelaPrincipal */
    public TelaPrincipal() {
        this.getContentPane().setBackground(Color.WHITE);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jButton4 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        Menu = new javax.swing.JMenuBar();
        menu_cadastrar = new javax.swing.JMenu();
        menu_cadastrar_cliente = new javax.swing.JMenuItem();
        menu_cadastrar_funcionario = new javax.swing.JMenuItem();
        menu_cadastrar_produtos = new javax.swing.JMenuItem();
        menu_alterar = new javax.swing.JMenu();
        menu_alterar_cliente = new javax.swing.JMenuItem();
        menu_alterar_funcionario = new javax.swing.JMenuItem();
        menu_alterar_produtos = new javax.swing.JMenuItem();
        menu_alterar1 = new javax.swing.JMenu();
        menu_alterar_cliente1 = new javax.swing.JMenuItem();
        menu_alterar_funcionario1 = new javax.swing.JMenuItem();
        menu_alterar_produtos1 = new javax.swing.JMenuItem();
        menu_caixa = new javax.swing.JMenu();
        menu_caixa_caixa = new javax.swing.JMenuItem();
        menu_estoque = new javax.swing.JMenu();
        menu_estoque_adicionar = new javax.swing.JMenuItem();
        menu_estoque_alterar = new javax.swing.JMenuItem();
        menu_estoque_estoque = new javax.swing.JMenuItem();
        menu_estoque_pesquisar = new javax.swing.JMenuItem();
        menu_pesquisar = new javax.swing.JMenu();
        menu_pesquisar_cliente = new javax.swing.JMenuItem();
        menu_pesquisar_funcionario = new javax.swing.JMenuItem();
        menu_pesquisar_produtos = new javax.swing.JMenuItem();
        menu_relatorios = new javax.swing.JMenu();
        menu_info = new javax.swing.JMenu();
        menu_info_versao = new javax.swing.JMenuItem();
        menu_info_creditos = new javax.swing.JMenuItem();
        menu_sair = new javax.swing.JMenu();
        menu_sair_sair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("...::: U N I F A R M A :::...");

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.setForeground(new java.awt.Color(255, 255, 204));

        jButton1.setBackground(new java.awt.Color(255, 255, 255));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fronteira/imagens/add_funcionario.png"))); // NOI18N

        jButton2.setBackground(new java.awt.Color(255, 255, 255));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fronteira/imagens/4655_32x32.png"))); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Cliente");

        jLabel3.setText("Funcionário");

        jButton3.setBackground(new java.awt.Color(255, 255, 255));
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fronteira/imagens/vendas.png"))); // NOI18N

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("Vendas");

        jButton4.setBackground(new java.awt.Color(255, 255, 255));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fronteira/imagens/add_produto.png"))); // NOI18N
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("Produtos");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel4)))
                .addContainerGap(312, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel5))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2)
                    .addComponent(jButton1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)))
        );

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fronteira/imagens/farmacia_ulbra_m.jpg"))); // NOI18N
        jLabel1.setMaximumSize(new java.awt.Dimension(500, 300));

        menu_cadastrar.setText("Cadastrar");
        menu_cadastrar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_cadastrar.setHideActionText(true);

        menu_cadastrar_cliente.setText("Cliente");
        menu_cadastrar.add(menu_cadastrar_cliente);

        menu_cadastrar_funcionario.setText("Funcionario");
        menu_cadastrar.add(menu_cadastrar_funcionario);

        menu_cadastrar_produtos.setText("Produtos");
        menu_cadastrar.add(menu_cadastrar_produtos);

        Menu.add(menu_cadastrar);

        menu_alterar.setText("Alterar");
        menu_alterar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_alterar.setHideActionText(true);

        menu_alterar_cliente.setText("Cliente");
        menu_alterar.add(menu_alterar_cliente);

        menu_alterar_funcionario.setText("Funcionario");
        menu_alterar.add(menu_alterar_funcionario);

        menu_alterar_produtos.setText("Produtos");
        menu_alterar.add(menu_alterar_produtos);

        Menu.add(menu_alterar);

        menu_alterar1.setText("Remover");
        menu_alterar1.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_alterar1.setHideActionText(true);

        menu_alterar_cliente1.setText("Cliente");
        menu_alterar1.add(menu_alterar_cliente1);

        menu_alterar_funcionario1.setText("Funcionario");
        menu_alterar1.add(menu_alterar_funcionario1);

        menu_alterar_produtos1.setText("Produtos");
        menu_alterar1.add(menu_alterar_produtos1);

        Menu.add(menu_alterar1);

        menu_caixa.setText("Vendas");
        menu_caixa.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_caixa.setHideActionText(true);

        menu_caixa_caixa.setText("Caixa");
        menu_caixa.add(menu_caixa_caixa);

        Menu.add(menu_caixa);

        menu_estoque.setText("Estoque");
        menu_estoque.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_estoque.setHideActionText(true);

        menu_estoque_adicionar.setText("Adicionar");
        menu_estoque.add(menu_estoque_adicionar);

        menu_estoque_alterar.setText("Alterar/Remover");
        menu_estoque.add(menu_estoque_alterar);

        menu_estoque_estoque.setText("Estoque");
        menu_estoque.add(menu_estoque_estoque);

        menu_estoque_pesquisar.setText("Pesquisar");
        menu_estoque.add(menu_estoque_pesquisar);

        Menu.add(menu_estoque);

        menu_pesquisar.setText("Pesquisar");
        menu_pesquisar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_pesquisar.setHideActionText(true);

        menu_pesquisar_cliente.setText("Clientes");
        menu_pesquisar.add(menu_pesquisar_cliente);

        menu_pesquisar_funcionario.setText("Funcionario");
        menu_pesquisar.add(menu_pesquisar_funcionario);

        menu_pesquisar_produtos.setText("Produtos");
        menu_pesquisar.add(menu_pesquisar_produtos);

        Menu.add(menu_pesquisar);

        menu_relatorios.setText("Relatórios");
        menu_relatorios.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_relatorios.setHideActionText(true);
        Menu.add(menu_relatorios);

        menu_info.setBackground(new java.awt.Color(204, 255, 204));
        menu_info.setText("Info");
        menu_info.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_info.setHideActionText(true);

        menu_info_versao.setText("Versão");
        menu_info.add(menu_info_versao);

        menu_info_creditos.setText("Créditos");
        menu_info.add(menu_info_creditos);

        Menu.add(menu_info);

        menu_sair.setText("Sair");
        menu_sair.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_sair.setHideActionText(true);

        menu_sair_sair.setText("Sair");
        menu_sair_sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_sair_sairActionPerformed(evt);
            }
        });
        menu_sair.add(menu_sair_sair);

        Menu.add(menu_sair);

        setJMenuBar(Menu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel1, 0, 0, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 450, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menu_sair_sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_sair_sairActionPerformed
        // TODO add your handling code here:
        System.exit(0);
}//GEN-LAST:event_menu_sair_sairActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        CadastrarCliente c = new CadastrarCliente();
        c.setSize(500, 500);
        c.setVisible(true);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        TelaGerenciarProduto p = new TelaGerenciarProduto();
        p.setSize(500, 500);
        p.setVisible(true);
    }//GEN-LAST:event_jButton4ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaPrincipal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar Menu;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JMenu menu_alterar;
    private javax.swing.JMenu menu_alterar1;
    private javax.swing.JMenuItem menu_alterar_cliente;
    private javax.swing.JMenuItem menu_alterar_cliente1;
    private javax.swing.JMenuItem menu_alterar_funcionario;
    private javax.swing.JMenuItem menu_alterar_funcionario1;
    private javax.swing.JMenuItem menu_alterar_produtos;
    private javax.swing.JMenuItem menu_alterar_produtos1;
    private javax.swing.JMenu menu_cadastrar;
    private javax.swing.JMenuItem menu_cadastrar_cliente;
    private javax.swing.JMenuItem menu_cadastrar_funcionario;
    private javax.swing.JMenuItem menu_cadastrar_produtos;
    private javax.swing.JMenu menu_caixa;
    private javax.swing.JMenuItem menu_caixa_caixa;
    private javax.swing.JMenu menu_estoque;
    private javax.swing.JMenuItem menu_estoque_adicionar;
    private javax.swing.JMenuItem menu_estoque_alterar;
    private javax.swing.JMenuItem menu_estoque_estoque;
    private javax.swing.JMenuItem menu_estoque_pesquisar;
    private javax.swing.JMenu menu_info;
    private javax.swing.JMenuItem menu_info_creditos;
    private javax.swing.JMenuItem menu_info_versao;
    private javax.swing.JMenu menu_pesquisar;
    private javax.swing.JMenuItem menu_pesquisar_cliente;
    private javax.swing.JMenuItem menu_pesquisar_funcionario;
    private javax.swing.JMenuItem menu_pesquisar_produtos;
    private javax.swing.JMenu menu_relatorios;
    private javax.swing.JMenu menu_sair;
    private javax.swing.JMenuItem menu_sair_sair;
    // End of variables declaration//GEN-END:variables

}
